﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LinqToLfsWorld;

public partial class HostStatus : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		using (LfsWorldContext context = new LfsWorldContext())
		{
			var result = from h in context.HostStatus
						 where h.HostName == "Blackwood XFG XRG"
						 && h.HostNameColour == HostStatusColour.Black
						 && h.ContentOnly == true
						 && h.UseLfsJoinLink == false
						 select h;

			var status = result.First();
			ResultLiteral.Text = status.Markup;
		}
	}
}
